Adwaita: fix up submenus again
authorJakub Steiner <jimmac@gmail.com>
Mon, 16 Nov 2020 18:48:11 +0000 (19:48 +0100)
committerJakub Steiner <jimmac@gmail.com>
Mon, 16 Nov 2020 18:48:11 +0000 (19:48 +0100)
- move menubar section under more generic popover.menu
  rather than resort to specificity dir(ltr) hacks

gtk/theme/Adwaita/_common.scss

index b69db89d18114af51729fff12b0ae150d1ce9c75..ba5738a822170a032cf3785a0299859ab0e84e81 100644 (file)
@@ -4134,35 +4134,9 @@ popover.entry-completion > contents {
   padding: 0;
 }
 
-// initial styling for popover menu and bar
-menubar {
-  padding: 0px;
-  box-shadow: inset 0 -1px transparentize(black, 0.9);
-
-  > item {
-    min-height: 16px;
-    padding: 4px 8px;
-
-    &:selected { //Seems like it :hover even with keyboard focus
-      box-shadow: inset 0 -3px $selected_bg_color;
-      color: $link_color;
-    }
-
-    &:disabled {
-      color: $insensitive_fg_color;
-      box-shadow: none;
-    }
-  }
-
-  & > item popover.menu.background > contents {
-    padding: 0;
-  }
-  //nested submenus
-  & > item popover.menu.background popover.menu.background > contents {
-    margin: 0;
-    border-radius: $popover_radius; //including top
-  }
-}
+/**********************
+ * Popover Base Menus *
+ **********************/
 
 $_menu-padding: 12px;
 
@@ -4263,6 +4237,39 @@ popover.menu {
   }
 }
 
+// initial styling for popover menu and bar
+menubar {
+  padding: 0px;
+  box-shadow: inset 0 -1px transparentize(black, 0.9);
+
+  > item {
+    min-height: 16px;
+    padding: 4px 8px;
+
+    &:selected { //Seems like it :hover even with keyboard focus
+      box-shadow: inset 0 -3px $selected_bg_color;
+      color: $link_color;
+    }
+
+    &:disabled {
+      color: $insensitive_fg_color;
+      box-shadow: none;
+    }
+  }
+
+  & > item popover.menu.background > contents {
+    padding: 0;
+  }
+  //nested submenus
+  & > item popover.menu popover.menu {
+    padding: 0 0 4px 0;
+  }
+  & > item popover.menu.background popover.menu.background > contents {
+    margin: 0;
+    border-radius: $popover_radius; //including top
+  }
+}
+
 statusbar {
   padding: 6px 10px 6px 10px;
 }